Skip to content

ReplaySubject class

Defined in

Namespace: System.Reactive.Subjects Assembly: System.Reactive.dll Full name: System.Reactive.Subjects.ReplaySubject<T> Modifiers: public sealed

Summary

        Represents an object that is both an observable sequence as well as an observer.
        Each notification is broadcasted to all subscribed and future observers, subject to buffer trimming policies.
        

Applies to

netstandard2.0

Class hierarchy
classDiagram
class ReplaySubject~T~
class SubjectBase~T~
SubjectBase~T~ <|-- ReplaySubject~T~

Inherits from: SubjectBase

Constructors

NameSummary
.ctorInitializes a new instance of the [ReplaySubject](# class.

Properties

NameSummary
HasObserversIndicates whether the subject has observers subscribed to it.
IsDisposedIndicates whether the subject has been disposed.

Methods

NameSummary
OnNextNotifies all subscribed and future observers about the arrival of the specified element in the sequence.
OnErrorNotifies all subscribed and future observers about the specified exception.
OnCompletedNotifies all subscribed and future observers about the end of the sequence.
SubscribeSubscribes an observer to the subject.
DisposeReleases all resources used by the current instance of the [ReplaySubject](# class and unsubscribe all observers.
Inherited members